class PermissionsController < InnerApplicationController
  
  def index
    @permissions = @project.designations
  end
  
  def bulk_edit
    if @project.update_attributes params[:project]
      flash[:success] = I18n.t :update, :scope => [:permission, :messages, :success]
      redirect_to project_permissions_url
    else
      render :action => "index"
    end
  end
  
  def destroy
    @project.designations.find(params[:id]).destroy
  end
end
